import request from '@/utils/request'

// 查询资产盘点子列表
export function listCheckDetails(query) {
  return request({
    url: '/archive/checkDetails/list',
    method: 'get',
    params: query
  })
}

// 查询资产盘点子详细
export function getCheckDetails(detailId) {
  return request({
    url: '/archive/checkDetails/' + detailId,
    method: 'get'
  })
}

// 新增资产盘点子
export function addCheckDetails(data) {
  return request({
    url: '/archive/checkDetails',
    method: 'post',
    data: data
  })
}

// 修改资产盘点子
export function updateCheckDetails(data) {
  return request({
    url: '/archive/checkDetails',
    method: 'put',
    data: data
  })
}

// 删除资产盘点子
export function delCheckDetails(detailId) {
  return request({
    url: '/archive/checkDetails/' + detailId,
    method: 'delete'
  })
}
